import request from '@/utils/request'

// 查询健康服务列表
export function listHealthservice(query) {
  return request({
    url: '/service/service/list',
    method: 'get',
    params: query
  })
}

// 查询健康服务详细
export function getHealthservice(serviceId) {
  return request({
    url: '/service/service/' + serviceId,
    method: 'get'
  })
}

// 新增健康服务
export function addHealthservice(data) {
  return request({
    url: '/service/service',
    method: 'post',
    data: data
  })
}

// 修改健康服务
export function updateHealthservice(data) {
  return request({
    url: '/service/service',
    method: 'put',
    data: data
  })
}

// 删除健康服务
export function delHealthservice(serviceId) {
  return request({
    url: '/service/service/' + serviceId,
    method: 'delete'
  })
}
